(function() {
    "use strict";

angular.module("gallawanceApp").config(router);
    function router($routeProvider) {
        $routeProvider.when("/offer/list", {
               templateUrl: "tmpl/offer/list.html",
               controller: offerListCtrl
           }).when("/offer/add", {
               templateUrl: "tmpl/offer/add.html",
               controller: offerAddCtrl
           }).when("/offer/edit/:offerId", {
                templateUrl: "tmpl/offer/edit.html",
                controller: offerEditCtrl
           }).when("/admin/login", {
                templateUrl: "tmpl/login/login.html",
                controller:gaUserCtrl
           }).otherwise({
              redirectTo: "/admin/login"
           });
    }
})();